﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class Cinema
    {
        public string Name { get; set; }
        public Cinema(string name)
        {
            Name = name;
        }

        public Cinema() { }
        //查询最热电影院方法
        public DAL.Cinemas HotCinema()
        {
            CinemaData c = new CinemaData();
            return c.Hot();
        }
        public IQueryable<DAL.MovieLists> showMovie(string  C_name)
        {
            CinemaData cd = new CinemaData();
            return cd.Smovie(C_name);

        }
        public IQueryable<DAL.Cinemas> Meg()
        {
            //声明数据层UserDate的实例
            CinemaData ud = new CinemaData();
            //调用数据层查询信息的方法，返回查询到的对象
            return ud.MessageData();
        }
        public DAL.Cinemas CinemaInfo()
        {
            //声明数据层UserDate的实例
            CinemaData cd = new CinemaData();

            //调用数据层查询信息的方法，返回查询到的对象
            return cd.CinemaInfoData(Name);
        }
    }
}
